package com.crnn.smart.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crnn.smart.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    User selectOneByName(String username);

    @Select("select * from user where name = #{name}")
    List<User> getUserByName( @Param("name") String name);

}
